import request from '@/utils/request'
const monitorApi = {
  allModel: '/modelApi/allModel',
  monitorResult: '/modelApi/monitor',
  alertConfigField: '/modelApi/alertConfigField',
  monitorEvaluate: '/modelApi/monitorEvaluate',
  backFlowDetail: '/modelApi/backFlowDetail',
}
export function getAllModel(parameter) {
  return request({
    url: monitorApi.allModel,
    method: 'get',
    params: parameter,
    headers: {
      'Content-Type': 'application/json;charset=UTF-8',
    },
  })
}
export function getMonitorResult(parameter) {
  return request({
    url: monitorApi.monitorResult,
    method: 'get',
    params: parameter,
    headers: {
      'Content-Type': 'application/json;charset=UTF-8',
    },
  })
}
export function getAlertConfigField(parameter) {
  return request({
    url: monitorApi.alertConfigField,
    method: 'get',
    params: parameter,
    headers: {
      'Content-Type': 'application/json;charset=UTF-8',
    },
  })
}
export function getMonitorEvaluate(parameter) {
  return request({
    url: monitorApi.monitorEvaluate,
    method: 'get',
    params: parameter,
    headers: {
      'Content-Type': 'application/json;charset=UTF-8',
    },
  })
}
export function getBackFlowDetail(parameter) {
  return request({
    url: monitorApi.backFlowDetail,
    method: 'get',
    params: parameter,
    headers: {
      'Content-Type': 'application/json;charset=UTF-8',
    },
  })
}
